package com.hr;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
@Data
@Component
@ConfigurationProperties(prefix = "hr.user")
public class User {
    private String username;
    private String password;
    private String name;
    private Integer age;
    private List<String> lists;
}
